'use strict';

import {Router} from 'express';
import * as controller from './comment.controller';
import * as auth from '../../auth/auth.service'


var router = new Router();

router.get('/', controller.index);

// By Get Method Path   :  req.params.*
router.get('/getCommentsByGamePost/:gamePostId', controller.getCommentsByGamePost);

// By Get Method Params :  req.query.*
router.get('/getCommentsByGamePostPaged', controller.getCommentsByGamePostPaged);

router.post('/createNewComment', controller.createNewComment);

router.get('/test/:id', controller.test);


module.exports = router;
